//import java.util.Scanner;
//import static java.lang.Math.*;
//public class Exercise {
//    public static void main(String[] args) {
//        Scanner in = new Scanner(System.in);
//        int a = in.nextInt();
//        int b = in.nextInt();
//        int c = in.nextInt();
//        double circumference = a+b+c;
//        double area = (1.0/2.0)*a*c*sqrt(1-pow(((a*a+c*c-b*b)/(2.0*a*c)),2));
//        System.out.println(String.format("circumference=%.2f area=%.2f", circumference,area));
//    }
//}

//import java.util.Scanner;
//public class Exercise {
//    public static void main(String[] args) {
//        Scanner in = new Scanner(System.in);
//       int n = in.nextInt();
//       if(((n % 4 == 0)&&(n % 100 != 0))||(n % 400 == 0))
//        {
//            System.out.println("yes");
//        }
//        else
//       {
//            System.out.println("no");
//        }
//    }
//}

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] arr=new int[10];
        for(int i=0;i<10;i++)
        {
            arr[i]=in.nextInt();
        }
        for(int i=9;i>=0;i--)
        {
            System.out.print(arr[i]+" ");
        }
    }
}